package com.taojiazheng.common;

/**
 * @author 赵成林
 * @date 2017/11/22 19:42
 */
public class ApplicationException extends RuntimeException {
    /**
     * 异常状态码
     */
    private int code;
    /**
     * 异常信息
     */
    private String message;


    public ApplicationException(String message) {
        super(message);
    }

    public ApplicationException(int code, String message) {
        this.code = code;
        this.message = message;
    }


    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
